import { RouteRecordRaw, RouterView } from 'vue-router'

import { redirectPath } from '../help'

const routes: Array<RouteRecordRaw> = [
  {
    path: '/admin/app-check',
    component: RouterView,
    meta: { title: '应用审核', auth: ['client-app-list'] },
    redirect: redirectPath,
    children: [
      {
        path: '/admin/app-check/check-list/list',
        component: () => import('@/views/admin/app-check/check-list/list/index.vue'),
        meta: { title: '应用审核', auth: ['client-app-list'] }
      },
      {
        path: '/admin/app-check/check-list/detail/:id',
        component: () => import('@/views/admin/app-check/check-list/detail/index.vue'),
        meta: { title: '应用审核详情', auth: ['client-app-list'] }
      },
      {
        path: '/admin/app-check/check-log/list',
        component: () => import('@/views/admin/app-check/check-log/list/index.vue'),
        meta: { title: '审核记录', auth: ['client-app-list'] }
      },
      {
        path: '/admin/app-check/check-log/detail/:id',
        component: () => import('@/views/admin/app-check/check-log/detail/index.vue'),
        meta: { title: '审核记录详情', auth: ['client-app-list'] }
      }
    ]
  }
]

export default routes
